home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / scriptte / z8ksim.sc < prev   
Encoding:
Text File  |  1993-08-17  |  730 b   |  55 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. OUTPUT_ARCH(z8002)
  4. ENTRY(_start)
  5.  
  6. SECTIONS                 
  7. {                     
  8. .text : {                     
  9.       *(.text)                 
  10.       *(.strings)
  11.       *(.rdata)
  12.     }
  13.  
  14. .ctors   : 
  15.     {
  16.       ${RELOCATING+ ___ctors = . ;  }
  17.       *(.ctors);
  18.       ${RELOCATING+ ___ctors_end = . ; }
  19.       ___dtors = . ;
  20.       *(.dtors);
  21.       ${RELOCATING+ ___dtors_end = . ; }
  22.     } 
  23.  
  24. .data : {
  25.     *(.data)
  26.     }
  27.  
  28. .bss : 
  29.   {
  30.     ${RELOCATING+ __start_bss = . ; }
  31.     *(.bss);
  32.     *(COMMON);
  33.     ${RELOCATING+ __end_bss = . ; }
  34.   }
  35.  
  36. .heap : {
  37.     ${RELOCATING+ __start_heap = . ; }
  38.     ${RELOCATING+ . = . + 20k  ; }
  39.     ${RELOCATING+ __end_heap = . ; }
  40.     } 
  41.  
  42. .stack ${RELOCATING+ 0xf000 }  : 
  43.     {
  44.     ${RELOCATING+ _stack = . ; }
  45.     *(.stack)
  46.     ${RELOCATING+ __stack_top = . ; }
  47.     } 
  48.  
  49. }
  50. EOF
  51.  
  52.  
  53.  
  54.  
  55.